<div class="brand-pic-wrap">
    <ul class="pic-list-box">

        <assign name="groupGType" value="$DataCarP[0]['GType']"/>

        <li>
            <div class="pic-list">
                <div class="top">
                    <h3>{$DataCarP[0]['GType']}</h3>
                    <a href="/index.php?m=CarLibrary&a=carImg&carPhotoType={$DataCarP[0]['GType']}&classId={$DataCarP[0]['ClassID']}" class="more">更多<i class="arrow"></i></a>
                </div>
                <ul class="pic-box">
        <foreach name="DataCarP" item="CarP">


            <if condition=" $CarP['GType'] neq $groupGType ">

                <assign name="groupGType" value="$CarP['GType']"/>
                        </ul>
                    </div>
             </li>

                <li>
                    <div class="pic-list">
                        <div class="top">
                            <h3>{$groupGType}</h3>
                            <a href="/index.php?m=CarLibrary&a=carImg&carPhotoType={$CarP['GType']}&classId={$CarP['ClassID']}" class="more">更多<i class="arrow"></i></a>
                        </div>
                        <ul class="pic-box">

            </if>

              <li>
                  <a href="{:U('CarLibrary/carImg',array('carId'=>$CarP['id'] ))}">
                     <img src="{$Think.config.APP_WEB_URL}{$CarP['PicPath']}">
                  </a>
              </li>

        </foreach>

    </ul>
</div>